package org.xg.study.pd.test;

import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.xg.study.pd.DataView;
import org.xg.study.pd.visitor.impl.Parent;
import org.xg.study.pd.visitor.impl.Principal;

/**
 * @author CMG
 * @version 1.0
 * @description
 * @cLassName ApiTest22_00
 * @date 2021/9/18 10:29
 **/
public class ApiTest22_00 {
    private Logger logger = LoggerFactory.getLogger(ApiTest22_00.class);

    @Test
    public void test(){
        DataView dataView = new DataView();
        logger.info("\r\n家长视角访问：");
        dataView.show(new Parent());

        logger.info("\r\n校长视角访问：");
        dataView.show(new Principal());
    }
}
